package cn.iocoder.yudao.module.pplan.controller.admin.tablewaredistplan.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

@Schema(description = "管理后台 - 生产计划餐具配送计划新增/修改 Request VO")
@Data
public class TablewareDistPlanSaveReqVO {

    @Schema(description = "唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "22096")
    private Long id;

    @Schema(description = "餐具配送计划编号", requiredMode = Schema.RequiredMode.REQUIRED)
    private String planCode;

    @Schema(description = "关联航班", requiredMode = Schema.RequiredMode.REQUIRED)
    private String flightNo;

    @Schema(description = "餐具主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "31724")
    private Long tablewareId;

    @Schema(description = "餐具数量(个)", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer tablewareQty;

    @Schema(description = "配送状态(1待处理2配送中3已完成4已作废)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer distStatus;

    @Schema(description = "计划有效期", requiredMode = Schema.RequiredMode.REQUIRED)
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate[] expireDate;

    @Schema(description = "备注")
    private String remarks;

}